//
//  NetworkToolTest.swift
//  dpos
//
//  Created by xutan on 16/12/5.
//  Copyright © 2016年 NN. All rights reserved.
//

import XCTest
@testable import dpos

class NetworkToolTest: dposTests {
    
    override func setUp() {
        super.setUp()
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }
    
    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
        super.tearDown()
    }
    
    func testGet(){
        
        let expect = expectation(description: "得到了数据")
        
        NetworkTool.request(url: "", param: ["": ""], success: { response in
            
            expect.fulfill()
        }, failed: {
            
        })
        
        waitForExpectations(timeout: 10, handler: { error in
            
            if error != nil {
                XCTFail("超时了")
            }
            
        })
        
    }
    
    func testPost(){
        
    }
    
    override func testPerformanceExample() {
        // This is an example of a performance test case.
        self.measure {
            // Put the code you want to measure the time of here.
        }
    }
    
}
